namespace BM.Tools.WebControls.MForm.Navigation.XPath.Predicates
{
    /// <summary>
    /// A predicate that works as a negation of an inner predicate
    /// </summary>
    public class NegationPredicate : Predicate
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="NegationPredicate"/> class. 
        /// </summary>
        /// <param name="predicate">
        /// The predicate.
        /// </param>
        public NegationPredicate(Predicate predicate)
        {
            Content = predicate;
        }

        /// <summary>
        /// Gets Content.
        /// </summary>
        /// <value>
        /// The content.
        /// </value>
        public Predicate Content
        {
            get;
            private set;
        }
    }
}